﻿namespace FictionsDownload.Model
{
    using FictionsDownload.DAL;
    using FictionsDownload.Migrations;
    using System;
    using System.Data.Entity;
    using System.Data.Entity.ModelConfiguration.Conventions;
    using System.Linq;

    public class db_MySQL : DbContext
    {
        public db_MySQL(): base("name=db_MySQL")
        {
            //Database.SetInitializer(new MigrateDatabaseToLatestVersion<db_MySQL, ConfigurationMySql>());
        }
        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Conventions.Remove<PluralizingTableNameConvention>();
        }
        public virtual DbSet<BookModel> Books { get; set; }
        public virtual DbSet<FolderModel> Folders { get; set; }
        public virtual DbSet<DirectoryModel> Directorys { get; set; }
        public virtual DbSet<WebFormatModel> WebFormats { get; set; }
    }

}